package com.castle.fortress.admin.study.exam.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 试卷统计 实体类
 *
 * @author castle
 * @since 2023-02-16
 */
@Data
@ApiModel(value = "studyExamStatistics对象", description = "试卷统计")
public class StudyExamStatisticsDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键")
	@JsonProperty("id")
	private Long id;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "人员ID")
	@JsonProperty("memberId")
	private Long memberId;
	@ApiModelProperty(value = "人员名称")
	@JsonProperty("memberName")
	private String memberName;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "试卷id")
	@JsonProperty("examId")
	private Long examId;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "最高分记录id")
	@JsonProperty("recordId")
	private Long recordId;
	@ApiModelProperty(value = "耗时，单位秒")
	@JsonProperty("timeConsuming")
	private Integer timeConsuming;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "答题时间")
	@JsonProperty("quizTime")
	private Date quizTime;
	@ApiModelProperty(value = "最高成绩")
	@JsonProperty("highScore")
	private Integer highScore;
	@ApiModelProperty(value = "考试次数")
	@JsonProperty("examNum")
	private Integer examNum;
	@JsonProperty("status")
	private Integer status;

}
